package cn.itcast.cxf.ws.server;

import cn.itcast.cxf.service.IUserService;
import cn.itcast.cxf.service.UserServiceImpl;

import javax.xml.ws.Endpoint;

public class WS_Server {
    public static void main(String[] args){
        //使用CXF 将UserService服务 注册到网上
        //1.服务实现对象
        IUserService userService = new UserServiceImpl();
        //2.发布服务地址
        String address = "http://localhost:9999/userService";
        //3.发布服务
        Endpoint.publish(address,userService);

        System.out.println("服务已经启动...");
    }
}
